Integrand size = 32, antiderivative size = 100 \[ \int \frac {c+d x^2+e x^4+f x^6}{x^3 \sqrt {a+b x^2}} \, dx=\frac {(b e-a f) \sqrt {a+b x^2}}{b^2}-\frac {c \sqrt {a+b x^2}}{2 a x^2}+\frac {f \left (a+b x^2\right )^{3/2}}{3 b^2}+\frac {(b c-2 a d) \text {arctanh}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{2 a^{3/2}} \]
1/3*f*(b*x^2+a)^(3/2)/b^2+1/2*(-2*a*d+b*c)*arctanh((b*x^2+a)^(1/2)/a^(1/2) )/a^(3/2)+(-a*f+b*e)*(b*x^2+a)^(1/2)/b^2-1/2*c*(b*x^2+a)^(1/2)/a/x^2
Time = 0.18 (sec) , antiderivative size = 92, normalized size of antiderivative = 0.92 \[ \int \frac {c+d x^2+e x^4+f x^6}{x^3 \sqrt {a+b x^2}} \, dx=\frac {\sqrt {a+b x^2} \left (-3 b^2 c+6 a b e x^2-4 a^2 f x^2+2 a b f x^4\right )}{6 a b^2 x^2}+\frac {(b c-2 a d) \text {arctanh}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right )}{2 a^{3/2}} \]
(Sqrt[a + b*x^2]*(-3*b^2*c + 6*a*b*e*x^2 - 4*a^2*f*x^2 + 2*a*b*f*x^4))/(6* a*b^2*x^2) + ((b*c - 2*a*d)*ArcTanh[Sqrt[a + b*x^2]/Sqrt[a]])/(2*a^(3/2))
Time = 0.44 (sec) , antiderivative size = 101, normalized size of antiderivative = 1.01, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.219, Rules used = {2331, 2124, 27, 1192, 25, 1467, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {c+d x^2+e x^4+f x^6}{x^3 \sqrt {a+b x^2}} \, dx\) |
\(\Big \downarrow \) 2331 |
\(\displaystyle \frac {1}{2} \int \frac {f x^6+e x^4+d x^2+c}{x^4 \sqrt {b x^2+a}}dx^2\) |
\(\Big \downarrow \) 2124 |
\(\displaystyle \frac {1}{2} \left (-\frac {\int \frac {-2 a f x^4-2 a e x^2+b c-2 a d}{2 x^2 \sqrt {b x^2+a}}dx^2}{a}-\frac {c \sqrt {a+b x^2}}{a x^2}\right )\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{2} \left (-\frac {\int \frac {-2 a f x^4-2 a e x^2+b c-2 a d}{x^2 \sqrt {b x^2+a}}dx^2}{2 a}-\frac {c \sqrt {a+b x^2}}{a x^2}\right )\) |
\(\Big \downarrow \) 1192 |
\(\displaystyle \frac {1}{2} \left (-\frac {\int -\frac {-2 a f x^8-2 a (b e-2 a f) x^4+b^3 c-2 a b^2 d+2 a^2 b e-2 a^3 f}{a-x^4}d\sqrt {b x^2+a}}{a b^2}-\frac {c \sqrt {a+b x^2}}{a x^2}\right )\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {1}{2} \left (\frac {\int \frac {-2 a f x^8-2 a (b e-2 a f) x^4+b^3 c-2 a b^2 d+2 a^2 b e-2 a^3 f}{a-x^4}d\sqrt {b x^2+a}}{a b^2}-\frac {c \sqrt {a+b x^2}}{a x^2}\right )\) |
\(\Big \downarrow \) 1467 |
\(\displaystyle \frac {1}{2} \left (\frac {\int \left (2 a f x^4+2 a (b e-a f)+\frac {b^3 c-2 a b^2 d}{a-x^4}\right )d\sqrt {b x^2+a}}{a b^2}-\frac {c \sqrt {a+b x^2}}{a x^2}\right )\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {1}{2} \left (-\frac {-\frac {b^2 \text {arctanh}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a}}\right ) (b c-2 a d)}{\sqrt {a}}-2 a \sqrt {a+b x^2} (b e-a f)-\frac {2}{3} a f x^6}{a b^2}-\frac {c \sqrt {a+b x^2}}{a x^2}\right )\) |
(-((c*Sqrt[a + b*x^2])/(a*x^2)) - ((-2*a*f*x^6)/3 - 2*a*(b*e - a*f)*Sqrt[a + b*x^2] - (b^2*(b*c - 2*a*d)*ArcTanh[Sqrt[a + b*x^2]/Sqrt[a]])/Sqrt[a])/ (a*b^2))/2
3.2.47.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))^(n_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[2/e^(n + 2*p + 1) Subst[Int[x^( 2*m + 1)*(e*f - d*g + g*x^2)^n*(c*d^2 - b*d*e + a*e^2 - (2*c*d - b*e)*x^2 + c*x^4)^p, x], x, Sqrt[d + e*x]], x] /; FreeQ[{a, b, c, d, e, f, g}, x] && IGtQ[p, 0] && ILtQ[n, 0] && IntegerQ[m + 1/2]
Int[((d_) + (e_.)*(x_)^2)^(q_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(d + e*x^2)^q*(a + b*x^2 + c*x^4)^p, x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && IGtQ[p, 0] && IGtQ[q, -2]
Int[(Px_)*((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] : > With[{Qx = PolynomialQuotient[Px, a + b*x, x], R = PolynomialRemainder[Px , a + b*x, x]}, Simp[R*(a + b*x)^(m + 1)*((c + d*x)^(n + 1)/((m + 1)*(b*c - a*d))), x] + Simp[1/((m + 1)*(b*c - a*d)) Int[(a + b*x)^(m + 1)*(c + d*x )^n*ExpandToSum[(m + 1)*(b*c - a*d)*Qx - d*R*(m + n + 2), x], x], x]] /; Fr eeQ[{a, b, c, d, n}, x] && PolyQ[Px, x] && LtQ[m, -1] && (IntegerQ[m] || ! ILtQ[n, -1])
Int[(Pq_)*(x_)^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[1/2 S ubst[Int[x^((m - 1)/2)*SubstFor[x^2, Pq, x]*(a + b*x)^p, x], x, x^2], x] /; FreeQ[{a, b, p}, x] && PolyQ[Pq, x^2] && IntegerQ[(m - 1)/2]
Time = 3.54 (sec) , antiderivative size = 88, normalized size of antiderivative = 0.88
method | result | size |
pseudoelliptic | \(-\frac {b^{2} x^{2} \left (a d -\frac {b c}{2}\right ) \operatorname {arctanh}\left (\frac {\sqrt {b \,x^{2}+a}}{\sqrt {a}}\right )+\frac {\sqrt {b \,x^{2}+a}\, \left (-2 \left (\frac {f \,x^{2}}{3}+e \right ) b \,x^{2} a^{\frac {3}{2}}+\sqrt {a}\, b^{2} c +\frac {4 a^{\frac {5}{2}} f \,x^{2}}{3}\right )}{2}}{a^{\frac {3}{2}} b^{2} x^{2}}\) | \(88\) |
risch | \(-\frac {c \sqrt {b \,x^{2}+a}}{2 a \,x^{2}}+\frac {2 a f \left (\frac {x^{2} \sqrt {b \,x^{2}+a}}{3 b}-\frac {2 a \sqrt {b \,x^{2}+a}}{3 b^{2}}\right )+\frac {2 a e \sqrt {b \,x^{2}+a}}{b}-\frac {\left (2 a d -b c \right ) \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right )}{\sqrt {a}}}{2 a}\) | \(116\) |
default | \(f \left (\frac {x^{2} \sqrt {b \,x^{2}+a}}{3 b}-\frac {2 a \sqrt {b \,x^{2}+a}}{3 b^{2}}\right )+\frac {e \sqrt {b \,x^{2}+a}}{b}-\frac {d \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right )}{\sqrt {a}}+c \left (-\frac {\sqrt {b \,x^{2}+a}}{2 a \,x^{2}}+\frac {b \ln \left (\frac {2 a +2 \sqrt {a}\, \sqrt {b \,x^{2}+a}}{x}\right )}{2 a^{\frac {3}{2}}}\right )\) | \(129\) |
-(b^2*x^2*(a*d-1/2*b*c)*arctanh((b*x^2+a)^(1/2)/a^(1/2))+1/2*(b*x^2+a)^(1/ 2)*(-2*(1/3*f*x^2+e)*b*x^2*a^(3/2)+a^(1/2)*b^2*c+4/3*a^(5/2)*f*x^2))/a^(3/ 2)/b^2/x^2
Time = 0.31 (sec) , antiderivative size = 210, normalized size of antiderivative = 2.10 \[ \int \frac {c+d x^2+e x^4+f x^6}{x^3 \sqrt {a+b x^2}} \, dx=\left [-\frac {3 \, {\left (b^{3} c - 2 \, a b^{2} d\right )} \sqrt {a} x^{2} \log \left (-\frac {b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {a} + 2 \, a}{x^{2}}\right ) - 2 \, {\left (2 \, a^{2} b f x^{4} - 3 \, a b^{2} c + 2 \, {\left (3 \, a^{2} b e - 2 \, a^{3} f\right )} x^{2}\right )} \sqrt {b x^{2} + a}}{12 \, a^{2} b^{2} x^{2}}, -\frac {3 \, {\left (b^{3} c - 2 \, a b^{2} d\right )} \sqrt {-a} x^{2} \arctan \left (\frac {\sqrt {-a}}{\sqrt {b x^{2} + a}}\right ) - {\left (2 \, a^{2} b f x^{4} - 3 \, a b^{2} c + 2 \, {\left (3 \, a^{2} b e - 2 \, a^{3} f\right )} x^{2}\right )} \sqrt {b x^{2} + a}}{6 \, a^{2} b^{2} x^{2}}\right ] \]
[-1/12*(3*(b^3*c - 2*a*b^2*d)*sqrt(a)*x^2*log(-(b*x^2 - 2*sqrt(b*x^2 + a)* sqrt(a) + 2*a)/x^2) - 2*(2*a^2*b*f*x^4 - 3*a*b^2*c + 2*(3*a^2*b*e - 2*a^3* f)*x^2)*sqrt(b*x^2 + a))/(a^2*b^2*x^2), -1/6*(3*(b^3*c - 2*a*b^2*d)*sqrt(- a)*x^2*arctan(sqrt(-a)/sqrt(b*x^2 + a)) - (2*a^2*b*f*x^4 - 3*a*b^2*c + 2*( 3*a^2*b*e - 2*a^3*f)*x^2)*sqrt(b*x^2 + a))/(a^2*b^2*x^2)]
Time = 12.83 (sec) , antiderivative size = 138, normalized size of antiderivative = 1.38 \[ \int \frac {c+d x^2+e x^4+f x^6}{x^3 \sqrt {a+b x^2}} \, dx=e \left (\begin {cases} \frac {\sqrt {a + b x^{2}}}{b} & \text {for}\: b \neq 0 \\\frac {x^{2}}{2 \sqrt {a}} & \text {otherwise} \end {cases}\right ) + f \left (\begin {cases} - \frac {2 a \sqrt {a + b x^{2}}}{3 b^{2}} + \frac {x^{2} \sqrt {a + b x^{2}}}{3 b} & \text {for}\: b \neq 0 \\\frac {x^{4}}{4 \sqrt {a}} & \text {otherwise} \end {cases}\right ) - \frac {\sqrt {b} c \sqrt {\frac {a}{b x^{2}} + 1}}{2 a x} - \frac {d \operatorname {asinh}{\left (\frac {\sqrt {a}}{\sqrt {b} x} \right )}}{\sqrt {a}} + \frac {b c \operatorname {asinh}{\left (\frac {\sqrt {a}}{\sqrt {b} x} \right )}}{2 a^{\frac {3}{2}}} \]
e*Piecewise((sqrt(a + b*x**2)/b, Ne(b, 0)), (x**2/(2*sqrt(a)), True)) + f* Piecewise((-2*a*sqrt(a + b*x**2)/(3*b**2) + x**2*sqrt(a + b*x**2)/(3*b), N e(b, 0)), (x**4/(4*sqrt(a)), True)) - sqrt(b)*c*sqrt(a/(b*x**2) + 1)/(2*a* x) - d*asinh(sqrt(a)/(sqrt(b)*x))/sqrt(a) + b*c*asinh(sqrt(a)/(sqrt(b)*x)) /(2*a**(3/2))
Time = 0.21 (sec) , antiderivative size = 104, normalized size of antiderivative = 1.04 \[ \int \frac {c+d x^2+e x^4+f x^6}{x^3 \sqrt {a+b x^2}} \, dx=\frac {\sqrt {b x^{2} + a} f x^{2}}{3 \, b} + \frac {b c \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | x \right |}}\right )}{2 \, a^{\frac {3}{2}}} - \frac {d \operatorname {arsinh}\left (\frac {a}{\sqrt {a b} {\left | x \right |}}\right )}{\sqrt {a}} + \frac {\sqrt {b x^{2} + a} e}{b} - \frac {2 \, \sqrt {b x^{2} + a} a f}{3 \, b^{2}} - \frac {\sqrt {b x^{2} + a} c}{2 \, a x^{2}} \]
1/3*sqrt(b*x^2 + a)*f*x^2/b + 1/2*b*c*arcsinh(a/(sqrt(a*b)*abs(x)))/a^(3/2 ) - d*arcsinh(a/(sqrt(a*b)*abs(x)))/sqrt(a) + sqrt(b*x^2 + a)*e/b - 2/3*sq rt(b*x^2 + a)*a*f/b^2 - 1/2*sqrt(b*x^2 + a)*c/(a*x^2)
Time = 0.30 (sec) , antiderivative size = 113, normalized size of antiderivative = 1.13 \[ \int \frac {c+d x^2+e x^4+f x^6}{x^3 \sqrt {a+b x^2}} \, dx=-\frac {\frac {3 \, {\left (b^{2} c - 2 \, a b d\right )} \arctan \left (\frac {\sqrt {b x^{2} + a}}{\sqrt {-a}}\right )}{\sqrt {-a} a} + \frac {3 \, \sqrt {b x^{2} + a} b c}{a x^{2}} - \frac {2 \, {\left (3 \, \sqrt {b x^{2} + a} b^{3} e + {\left (b x^{2} + a\right )}^{\frac {3}{2}} b^{2} f - 3 \, \sqrt {b x^{2} + a} a b^{2} f\right )}}{b^{3}}}{6 \, b} \]
-1/6*(3*(b^2*c - 2*a*b*d)*arctan(sqrt(b*x^2 + a)/sqrt(-a))/(sqrt(-a)*a) + 3*sqrt(b*x^2 + a)*b*c/(a*x^2) - 2*(3*sqrt(b*x^2 + a)*b^3*e + (b*x^2 + a)^( 3/2)*b^2*f - 3*sqrt(b*x^2 + a)*a*b^2*f)/b^3)/b
Time = 6.42 (sec) , antiderivative size = 99, normalized size of antiderivative = 0.99 \[ \int \frac {c+d x^2+e x^4+f x^6}{x^3 \sqrt {a+b x^2}} \, dx=\frac {e\,\sqrt {b\,x^2+a}}{b}-\frac {d\,\mathrm {atanh}\left (\frac {\sqrt {b\,x^2+a}}{\sqrt {a}}\right )}{\sqrt {a}}-\frac {c\,\sqrt {b\,x^2+a}}{2\,a\,x^2}+\frac {b\,c\,\mathrm {atanh}\left (\frac {\sqrt {b\,x^2+a}}{\sqrt {a}}\right )}{2\,a^{3/2}}-\frac {f\,\sqrt {b\,x^2+a}\,\left (2\,a-b\,x^2\right )}{3\,b^2} \]